/* blog-styles.css */

/* Headings */
h1 {
  font-size: 2.5rem !important;
  font-weight: bold !important;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.75rem !important;
  font-weight: bold !important;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.2rem !important;
  font-weight: bold !important;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Body Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0 1rem;
  background-color: #fff;
}

p {
  margin-bottom: 1em;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

/* Tables */
.overflow-x-auto {
  overflow-x: auto;
  display: block;
}

.contain-inline-size {
  contain: inline-size;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.5em 0.75em;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

th:first-child,
td:first-child {
  white-space: nowrap;
  word-break: keep-all;
}

th {
  background-color: #f9f9f9;
}

tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  color: #666;
  margin: 1em 0;
}

/* Code */
pre, code {
  background-color: #f4f4f4;
  padding: 8px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem !important;
  }
  h2 {
    font-size: 1.4rem !important;
  }
  h3 {
    font-size: 1.1rem !important;
  }
  body {
    padding: 0 0.75rem;
    font-size: 0.95rem;
  }
  table {
    font-size: 0.85rem;
  }
  th, td {
    padding: 0.4em 0.5em;
  }
  pre, code {
    font-size: 0.85rem;
  }
}
